package com.train.system.api;

import com.train.common.constants.ApiConstants;
import com.train.common.resp.CommonResp;
import com.train.system.api.fallback.TrainSeatApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * trainSeat Facade 接口
 * @author baitiaojun
 * @createDate 2025-02-20 23:20:20
 */
@FeignClient(
        contextId = "trainSeatFacade",
        name = ApiConstants.SYSTEM_NAME,
        path = ApiConstants.SYSTEM_PREFIX,
        fallback = TrainSeatApiFallback.class)
public interface TrainSeatApi {

    String PREFIX = "/train-seat";

    @PostMapping(PREFIX + "/listByTrainCodes")
    CommonResp getTrainSeatListByTrainCodes(@RequestBody List<String> trainCodes);
}
